package com.sky.properties;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author majun
 * @package com.sky.properties
 * @date 2024/11/21 14:10
 */
@Component
@ConfigurationProperties(prefix = "sky.email")
@Data
public class EmailProperties {

    /**
     * 邮箱地址
     */
    private String from;

    /**
     * SMTP服务器地址
     */
    private String host;

    /**
     * 邮箱用户名
     */
    private String username;

    /**
     * 邮箱授权码或密码
     */
    private String password;

}
